package com.atguigu.gulimail.member;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;

/*
* 1想要远程调用别的服务
*1，引入open-feign依赖
*2编写一个接口，告诉springcloud这个接口要调用需要的远程服务
*   1声明接口的每一个方法都是调用哪个远程服务的那个请求
*   2开启远程调用功能：只需在spring boot的启动类上面添加一个注解@EnableFeignClients声明feign接口的调用服务路径()
* */
@EnableFeignClients("com.atguigu.gulimail.member.feign")
@SpringBootApplication
@EnableDiscoveryClient
@MapperScan("com.atguigu.gulimail.member.dao")
public class GulimailMemberApplication {

    public static void main(String[] args) {
        SpringApplication.run(GulimailMemberApplication.class, args);
    }

}
